package com.ruoyi.system.model.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 销售订单记录对象 order_rec
 *
 * @author ruoyi
 * @date 2022-10-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderRec extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    private Long createId;
    private Long supllyId;

    /**
     * $column.columnComment
     */
    private Long updateId;
    private Long gameid;
    private Long salechanelid;

    /**
     * 销售渠道
     */
    @Excel(name = "销售渠道", sort = 4)
    private String saleChannel;
    @Excel(name = "备注", sort = 14)
    private String remake;

    /**
     * 供货渠道
     */
    private String supplyChannel;

    private String saleTimeEnd;
    private String saleTimeStart;
    @Excel(name = "创建人", sort = 15)
    private String createName;

    /**
     * 销售折扣后金额
     */
    private String saleDiscountPrice;

    /**
     * 销售折扣
     */
    @Excel(name = "销售折扣", sort = 9)
    private String saleDiscount;

    /**
     * 供货金额
     */
    private String supplyDiscountPrice;

    /**
     * 供货折扣
     */
    private String supplyDiscount;

    /**
     * 销售金额
     */
    @Excel(name = "销售金额", sort = 8, isStatistics = true, cellType = Excel.ColumnType.NUMERIC)
    private String salePrice;

    /**
     * 自编号
     */
    private String sumNum;

    private Integer suplyid;
    private Integer saleid;


    /**
     * 利润
     */
    @Excel(name = "利润", sort = 13, isStatistics = true, cellType = Excel.ColumnType.NUMERIC)
    private String profits;

    private String oderstatus;

    /**
     * 游戏
     */
    @Excel(name = "游戏类型", sort = 2)
    private String games;

    /**
     * 是否支付
     */
    private String ifPay;

    @Excel(name = "商品编号", sort = 1)
    private String accountid;

    private String snum;
    @Excel(name = "游戏账号", sort = 3)
    private String account;
    private String supllypay;
    private String suplyprice;

    /**
     * 销售人id
     */
    private Long saleUserId;
    /**
     * 销售人用户名
     */
    @Excel(name = "销售人", sort = 16)
    private String saleUserName;
    /**
     * 换绑用户id
     */
    private Long changeUserId;
    /**
     * 换绑用户名
     */
    private String changeUserName;
    /**
     * 优惠金额
     */
    @Excel(name = "优惠金额", sort = 10, isStatistics = true, cellType = Excel.ColumnType.NUMERIC)
    private String discountAmount;
    /**
     * 成本金额
     */
    @Excel(name = "成本", sort = 12, isStatistics = true, cellType = Excel.ColumnType.NUMERIC)
    private String costAmount;

    /**
     * 接口折扣
     */
    @Excel(name = "接口折扣", sort = 7)
    private String jkzk;

    /**
     * 回收日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String recycleTime;

    /**
     * 回收人姓名
     */
    @Excel(name = "回收人", sort = 5)
    private String recyclerName;


    /**
     * 同步账单信息
     */
    private String atta;

    /**
     * 同步账单 实收金额
     */
    @Excel(name = "实收金额", sort = 11, isStatistics = true, cellType = Excel.ColumnType.NUMERIC)
    private String zdPrice;

    /**
     * 商品表里的售价
     */
    @Excel(name = "原价", sort = 6, isStatistics = true, cellType = Excel.ColumnType.NUMERIC)
    private String oldPrice;

    /**
     * 网易使用状态
     * 1未使用、2已空闲、3使用中、4已售未换绑
     */
    private String wyStatus;


    /**
     * 换绑状态  0  默认未换绑  1 已换绑
     */
    private Integer isBindStatus;

    /**
     * 换绑状态  字典配置
     */
    private String bindStatus;


    /**
     * 买家换绑手机号
     */
    private String buyerPhone;

    /**
     * 买家换绑截图
     */
    private String buyerImg;
}
